home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 8
/
The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO
/
pcboard
/
vrs501.zip
/
VRS-M452.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1996-10-08
|
7KB
|
300 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 3.2O (Encryption type I) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Integer INTEGER001
Integer INTEGER002
Integer INTEGER003
Integer INTEGER004
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String TSTRING006(12)
String STRING007
String STRING008
String STRING009
String STRING010
String STRING011
;------------------------------------------------------------------------------
Goto LABEL001
End
If (0 == 0) STRING001 = "NO"
If (0 == 1) STRING001 = "YES"
EndFunc
:LABEL001
STRING011 = "@X01≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡@X0F"
STRING003 = String(PcbNode())
If (PcbNode() == 0) STRING003 = "A"
STRING004 = String(Random(1000)) + "X" + STRING003
STRING005 = GetEnv(STRING003 + "RECNO")
STRING005 = ToInteger(STRING005)
DOpen 0, PPEPath() + "USER.DBF", 0
DnCreate 0, PPEPath() + STRING004 + ".NDX", "HANDLE"
DGo 0, STRING005
If (DGet(0, "VITALITY") == "N") Goto LABEL007
Newline
If (DGet(0, "CASH") < DGet(0, "LEVEL") * 125) Then
PrintLn "@X0CYou don't have enough cash on hand to get those access codes...get lost!@X0F"
Newlines 2
Call PPEPath() + "VRS-M19.PPE"
Else
:LABEL002
DCloseAll
DOpen 0, PPEPath() + "USER.DBF", 0
DGo 0, STRING005
Cls
PrintLn
PrintLn
PrintLn "Virtual Reality Soldier - @X0ABribe the BarKeep@X0F"
PrintLn STRING011
PrintLn
PrintLn " @X0A(@X0DL@X0A)@X02ist who is in their sleeping chambers."
PrintLn " @X0A(@X0DG@X0A)@X02et access code for a sleeping player. "
PrintLn " @X0A(@X0DQ@X0A)@X02uit out of here. "
PrintLn
InputStr "@X0AWhat will it be Soldier @X02> _", STRING002, 2, 1, "LGQ", 0 + 8
Select Case (STRING002)
Case ""
Goto LABEL002
Case "L"
Goto LABEL004
Case "G"
Goto LABEL003
Case "Q"
Goto LABEL007
End Select
:LABEL003
Backup 80
ClrEol
InputStr "@X0EWho's access code do you want to buy @X02> _", STRING010, 15, 25, Mask_Ascii(), 0 + 8
DTag 0, STRING004
DTop 0
DSeek 0, STRING010
If (DChkStat(0) > 0) Then
Backup 80
ClrEol
PrintLn "@X0CThat player was not found! Try again!@X0F"
STRING010 = " "
Delay (3 * 182) / 10
Goto LABEL003
Endif
If ((DGet(0, "VITALITY") == "S") || (DGet(0, "VITALITY") == "B")) Then
INTEGER003 = DRecNo(0)
Cls
PrintLn "@X0AYou grab the access code from the barkeep and run out of the outpost,"
PrintLn "@X0Aas you decide that it probably is a good idea to get right over to the"
PrintLn "@X0Asleeping chambers before the barkeep can try to double his money. "
Endif
If (DGet(0, "VITALITY") == "I") Then
Cls
Newlines 2
PrintLn "You find sleeping chamber #", Random(50), " and furtively look around."
PrintLn "Not seeing anyone, you punch in the access code, grinning slyly as you"
PrintLn "wait for the chamber door to slide quietly open..."
Delay (2 * 182) / 10
PrintLn "... only to find that the access code you punched in doesn't work..."
Newlines 2
Call PPEPath() + "VRS-M19.PPE"
Else
Cls
Newline
PrintLn "You find sleeping chamber #", Random(50), " and furtively look around, not"
PrintLn "seeing anyone, you punch in the access code, grinning slyly as the chamber"
PrintLn "door slides quietly open..."
Newline
PrintLn "You see ", Mixed(Trim(DGet(0, "HANDLE"), " ")), " laying on their sleeping pad, "
PrintLn "their eyes closed and a slight snore escaping from their mouth. You strike! "
Newlines 2
Call PPEPath() + "VRS-M19.PPE"
INTEGER002 = Random(100)
If (DGet(0, "VITALITY") == "S") INTEGER002 = INTEGER002 + 15
If (INTEGER002 <= 30) Then
Cls
PrintLn
PrintLn "You run them through like a sleeping dog. They had no chance! You access"
PrintLn "their ID chip for ", Trim(DGet(0, "CASH"), " "), " credits while the body is "
PrintLn "still warm, and run!"
DGo 0, INTEGER003
INTEGER001 = DGet(0, "CASH")
INTEGER004 = DGet(0, "EXP") / 10
DPut 0, "CASH", 0
DPut 0, "VITALITY", "N"
DPut 0, "HITPTS_L", 0
DGo 0, 0
DPut 0, "CASH", DGet(0, "CASH") + INTEGER001
DPut 0, "EXP", DGet(0, "EXP") + INTEGER004
INTEGER001 = 0
INTEGER004 = 0
Delay (5 * 182) / 10
ElseIf ((INTEGER002 > 50) && (INTEGER002 < 80)) Then
DGo 0, INTEGER003
INTEGER001 = DGet(0, "CASH") / 2
INTEGER004 = DGet(0, "EXP") / 20
Cls
PrintLn
PrintLn "Just as you are about to run them through, a snort comes from the body"
PrintLn "in front of you, you get nervous and give them a half hearted cut. You"
PrintLn "touch arms to grab up as much of their credits as possible, a "
PrintLn INTEGER001, " gain, and run!"
DPut 0, "CASH", DGet(0, "CASH") / 2
DPut 0, "VITALITY", "Y"
DGo 0, 0
DPut 0, "CASH", DGet(0, "CASH") + INTEGER001
DPut 0, "EXP", DGet(0, "EXP") + INTEGER004
INTEGER001 = 0
INTEGER004 = 0
Delay (5 * 182) / 10
ElseIf (INTEGER002 >= 80) Then
Cls
PrintLn
PrintLn "As you are about to run them through, a bolt of electricity crashes"
PrintLn "through the open chamber. Rats! the local cops nailed you! The effect"
PrintLn "should wear off in 24 hours or so."
DPut 0, "VITALITY", "N"
DPut 0, "HITPTS_L", 0
INTEGER004 = DGet(0, "EXP") / 10
DPut 0, "EXP", DGet(0, "EXP") - INTEGER004
INTEGER004 = 0
Endif
Goto LABEL002
:LABEL004
TSTRING006(1) = "Private"
TSTRING006(2) = "Corporal"
TSTRING006(3) = "Lance Corporal"
TSTRING006(4) = "Sergeant"
TSTRING006(5) = "Gunnery Sergeant"
TSTRING006(6) = "Lieutenant"
TSTRING006(7) = "Second Lieutenant"
TSTRING006(8) = "Captain"
TSTRING006(9) = "Major"
TSTRING006(10) = "Colonel"
TSTRING006(11) = "Lieutenant Colonel"
TSTRING006(12) = "General"
DTop 0
Cls
Newlines 2
PrintLn " @X0ERank @X0AName @X0B Status "
PrintLn " @X09───────────────────────────────────────────────────────"
:LABEL005
DSkip 0, 1
If (DEof(0)) Goto LABEL006
STRING009 = DGet(0, "LEVEL")
STRING008 = Trim(TSTRING006(STRING009), " ")
STRING010 = Trim(DGet(0, "HANDLE"), " ")
STRING007 = Trim(DGet(0, "VITALITY"), " ")
STRING010 = Mixed(STRING010)
If (((STRING007 == "S") || (STRING007 == "B")) || (STRING007 == "I")) PrintLn "@POS:13@@X0E", STRING008, "@POS:32@@X0A", STRING010, "@POS:57@", "@X0BSLEEPING@X0F"
Goto LABEL005
:LABEL006
Newline
Call PPEPath() + "VRS-M19.PPE"
Goto LABEL002
Endif
Endif
:LABEL007
DCloseAll
Delete PPEPath() + STRING004 + ".NDX"
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 2 End
; 8 Cls
; 2 ClrEol
; 29 Goto
; 39 Let
; 39 PrintLn
; 18 If
; 1 Delete
; 2 InputStr
; 4 Delay
; 4 Newline
; 5 Newlines
; 4 Call
; 2 Backup
; 1 EndFunc
; 2 DOpen
; 2 DCloseAll
; 1 DnCreate
; 2 DTop
; 6 DGo
; 1 DSkip
; 1 DTag
; 1 DSeek
; 12 DPut
;
;
; ■ Functions used :
;
; 5 *
; 9 /
; 20 +
; 1 -
; 15 ==
; 2 <
; 1 <=
; 2 >
; 1 >=
; 11 !
; 1 &&
; 3 ||
; 5 Trim()
; 4 Random()
; 2 String()
; 1 Mask_Ascii()
; 8 PPEPath()
; 2 PcbNode()
; 1 GetEnv()
; 1 ToInteger()
; 2 Mixed()
; 1 DEof()
; 1 DRecNo()
; 23 DGet()
; 1 DChkStat()
;
;------------------------------------------------------------------------------
;
; Analysis flags : C
;
; C - Call child PPE ■ 3
; This is usually normal, but may be a tricky way to launch some
; sysop-only commands.
; ■ Search for : CALL
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 0 While/EndWhile
; 7 If/Then or If/Then/Else
; 1 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------